lst=range(2, 100)
for i in lst[:]:
    for j in range(2, i-1):
        if i%j==0:
            lst.remove(i)
            break

print ' '.join([str(i) for i in lst])